package com.it.service.impl;

import com.it.dao.AccountDao;
import com.it.pojo.Account;
import com.it.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("accountService")
public class AccountServiceImpl implements AccountService {
    @Autowired
    private AccountDao dao;

    public void setDao(AccountDao dao) {
        this.dao = dao;
    }

    public List<Account> getAll() {

        return dao.queryAll();
    }
}
